package com.zhdl.modules.demo.DCHTProcess;

import com.zhdl.common.ytools.callback.CommonCallback;
import com.zhdl.modules.demo.dglProcess.camera.CameraResult;
import com.zhdl.modules.demo.dglProcess.camera.CameraTakePhotoService;
import com.zhdl.modules.process.common.ProcessDo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CameraRunDo implements ProcessDo {
    int cameraNo,location;
    CommonCallback<CameraResult> cameraResultCommonCallback;
    CameraTakePhotoService cameraTakePhotoService;

    public CameraRunDo(CameraTakePhotoService cameraTakePhotoService,int cameraNo, int location, CommonCallback<CameraResult> cameraResultCommonCallback) {
        this.cameraNo = cameraNo;
        this.location = location;
        this.cameraResultCommonCallback = cameraResultCommonCallback;
        this.cameraTakePhotoService = cameraTakePhotoService;
    }
    @Override
    public void doSomeThing() {
        log.info(cameraTakePhotoService.getClass().getName()+"调用"+cameraNo+"到位置"+location+"拍照识别");
        cameraTakePhotoService.takePhoto(cameraNo,location,cameraResultCommonCallback);
    }
}
